import { baseApi } from "@/network"

// role 相关 Api start
const roleList = async () => await baseApi.postJSON("/role/list")

const queryrole = async (data: any) => await baseApi.postJSON("/role/query", data)

const saverole = async (data: any) => await baseApi.postJSON("/role/save", data)

const removerole = async (data: any) => await baseApi.delete("/role/delete", data)
// role 相关 Api end

export default { roleList, queryrole, saverole, removerole }
